<h3>List of Registered users in the system.</h3>
<?php 
$this->dojo()->enable();
//foreach($this->paginator as $user) {
//echo $this->escape($user['fname']);
//echo $this->escape($user['lname']);
//}

$this->accordionContainer()->captureStart(
 'users',
  array('duration' => 200),
  array('style' => 'width: 400px; height: 400px;')
  );
 foreach ($this->paginator as $user) {
 	 $id = $user['id'];
  $del = $this->url(array('module'=>'admin', 'controller'=>'usermanagement', 'action'=>'deluser', 'id'=>$id));
  
  	$Content ='Email:' . ' ' .$user['email'] .'<br> Role: ' 
  	.$user['role'] . "<br><strong><a href=$del>Delete this user</a></strong>";
  echo $this->accordionPane(
  'user' .$user['id'],
  $Content,
  array ('title' => $user['username']),
  array ("style" => 'background-color: lightblue;'),
  array ('design' => 'headline;')
  );
  }
//echo $this->escape($user['lname'])


echo $this->accordionContainer()->captureEnd('users');
 ?>
<?php echo $this->paginationControl($this->paginatior, 'Sliding', 'pagination.phtml' ); ?>
